package org.responseChain;

public class SetConcreteHandle {
	private Handler handler1;
	private Handler handler2;
	private Handler handler3;
	
	
	
	public SetConcreteHandle() {
		handler1 = new ConcreteHandler1();
		handler2 = new ConcreteHandler2();
		handler3 = new ConcreteHandler3();
	}



	public final Response handleMessage(Request request){
		Response response = null;
		handler1.setNext(handler2);
		handler2.setNext(handler3);
		
		response = handler1.handleMessage(request);
		return response;
	}
	
}
